<div class="title_list">
    <div class="title_txt">
        <img src="themes/default/images/title_txt01.jpg"border="0">
    </div>
    <div class="title_more">
        <a href="category.php?id=20" target="_blank">更多商品</a>
    </div>
    <div class="title_btn">
        <div class="title_btn_right">
            <a href="javascript::void(0)" id="temaiRight" onclick="temaiRight();"></a>
        </div>
        <ul>
            <?php if ($this->_var['miao_num'] > 0): ?>
            <?php $_from = $this->_var['miao_pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('k', 'miao');if (count($_from)):
    foreach ($_from AS $this->_var['k'] => $this->_var['miao']):
?>
            <li class="temai temaitag<?php echo $this->_var['k']; ?> <?php if ($this->_var['k'] == 0): ?>current<?php endif; ?>" onclick="changeTemaiPage(<?php echo $this->_var['k']; ?>);"></li>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            <?php endif; ?>
        </ul>
        <div class="title_btn_left">
            <a href="javascript::void(0)" id="temaiLeft" page="5" currenttag="0" onclick="temaiLeft();"></a>
        </div>
    </div>
</div>
<div class="title_body temaibody">
    <?php if ($this->_var['miao_goods']): ?>
    <?php echo $this->smarty_insert_scripts(array('files'=>'lefttime_index.js')); ?>
    <?php $_from = $this->_var['miao_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('k', 'miao');$this->_foreach['miao'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['miao']['total'] > 0):
    foreach ($_from AS $this->_var['k'] => $this->_var['miao']):
        $this->_foreach['miao']['iteration']++;
?>
    <div class="time_list teamlist<?php echo $this->_var['k']; ?>" id="temailist_<?php echo $this->_var['k']; ?>" <?php if ($this->_foreach['miao']['iteration'] > 5): ?>style="display:none;"<?php endif; ?>>

        <div class="time_num">
            <p id="leftTime<?php echo $this->_var['k']; ?>"></p><input type="hidden" id="end_time<?php echo $this->_var['k']; ?>" value="<?php echo empty($this->_var['miao']['flash_sale_end_date']) ? '0' : $this->_var['miao']['flash_sale_end_date']; ?>">
        </div>
        <div class="time_center">
            <div class="time_img">
                <a href="<?php echo $this->_var['miao']['url']; ?>" target="_blank">
                    <img src="<?php echo $this->_var['miao']['thumb']; ?>" border="0" height="165" width="165"></a>
            </div>
            <div class="time_price">
                <b>特卖价</b>
                <p><span><?php echo $this->_var['miao']['flash_sale_price']; ?></span></p>
            </div>
        </div>
        <div class="time_txt">
            <a href="<?php echo $this->_var['miao']['url']; ?>" target="_blank"><?php echo $this->_var['miao']['name']; ?></a>
        </div>
        <div class="time_btn">
            <a onclick="addToCart(<?php echo $this->_var['miao']['id']; ?>);"
               href="javascript::void(0);"></a>
        </div>
        <div class="time_bottom">
            <b><span><?php echo $this->_var['miao']['sale_num']; ?></span>人已购买</b>

            <p>数量有限下手要快哦</p>
        </div>
        <div style="clear:both;"></div>
        
    </div>
    <script>
    window.setInterval(function()
    {clock(<?php echo $this->_var['k']; ?>);}, 1000);
    </script>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    <?php endif; ?>
</div>